<div id="<?= $this->getAsyncId() ?>">

    <!-- Trace -->
    <ul>
        <?
        foreach ( $this->previosLinks as $k => $p ):
            ?>
            <li><a href="<?=
                $this->asyncUrlEvent( 'milestone', array( 'id' => $k ) )
                ?>"><?= htmlspecialchars( $p ) ?></a></li>
            <? endforeach; ?>
    </ul>

    <!-- child milestone -->
    <ul>
        <?
        for ( $i = 0; $i < count( $this->childsNodes ) - 1; $i++ ):
            ?>
            <li><a href="<?=
                $this->asyncUrlEvent( 'milestone', array( 'id' => $c->id ) )
                ?>"><?= htmlspecialchars( $c ) ?></a></li>
            <? endfor; ?>
    </ul>

    <? if ( $this->project_admin ): ?>

        <form method="post" action="." accept-charset="UTF-8" >
            <?= $this->asyncFormEvent( 'crear' ); ?>
            <input type="text" name="description" value="" />
            <input type="button" value="crear" />
        </form>

    <? endif; ?>


    <!-- menu -->
    <ul>

        <? if ( $this->section_policy != 'events_list' ): ?>
            <li><a href="<?=
                $this->asyncUrlEvent( 'events_list', array( 'id' => $this->id ) )
                ?>">incidencias</a></li>
            <? else: ?>
            <li>incidencias</li>
        <? endif; ?>

        <? if ( $this->section_policy != 'files_list' ): ?>
            <li><a href="<?=
                $this->asyncUrlEvent( 'files_list', array( 'id' => $this->id ) )
                ?>">archivos</a></li>
            <? else: ?>
            <li>archivos</li>
        <? endif; ?>

        <? if ( $this->section_policy != 'time_line' ): ?>
            <li><a href="<?=
                $this->asyncUrlEvent( 'time_line', array( 'id' => $this->id ) )
                ?>">diagrama</a></li>
            <? else: ?>
            <li>línea de tiempos</li>
        <? endif; ?>

        <? if ( $this->project_admin ): ?>

            <? if ( $this->section_policy != 'project_users_list' ): ?>
                <li><a href="<?=
                    $this->asyncUrlEvent( 'project_users_list',
                            array( 'id' => $this->id ) )
                    ?>">usuarios</a></li>
            <? else: ?>
                <li>usuarios</li>
            <? endif; ?>

<? endif; ?>

    </ul>

<?= $this->childsNode[ count( $this->childsNodes ) ]; ?>
</div>